// 医院服务的api文件
import requestInstance from './request';
const http = requestInstance({
  baseURL: 'https://njrsxxzx.cn/njrs/search/api/'
});

const http2 = requestInstance({
  baseURL: 'https://njrsxxzx.cn/njrs/',
});
// 获取我的消息 
export function getMyMessage(data) {
  return http.request({
    url: 'getMyMessage',
    method: 'get',
    data: data
  })
}

export function readMessage(data) {
  return http.request({
    url: 'readMessage',
    method: 'get',
    data: data
  })
}

//保存我的事项
export function saveMatter(name) {
  return http.request({
    url: 'saveMatter',
    method: 'get',
    data: {
      sfz: wx.getStorageSync('userInfo').idNumber,
      ywname: name
    }
  })
}

//保存我的事项
export function getMyMatter(data) {
  return http.request({
    url: 'getMyMatter',
    method: 'get',
    data: data
  })
}
// 获取用户信息
export function getUserInfo(data){
  return http2.request({
    url: 'imageUpload/getUserInfo',
    method: 'get',
    data: data
  })
}

// 查询退休档案地查询接口 
export function getSelectTXDA(data){
  return http.request({
    url: 'selectTXDA',
    method: 'post',
    data: data
  })
}

// 查询农民工实名制管理接口
export function nmgsmzgl(data){
  return http.request({
    url: 'saveNMGKQ',
    method: 'post',
    data: data
  })
}